﻿using System;

class WhatIsTheThirdBit

        // Write a boolean expression for finding if the bit 3 (counting from 0) of a given integer is 1 or 0.

{
    static void Main(string[] args)
    {
        Console.Write("Enter a number:");
        int number = int.Parse(Console.ReadLine());
        Console.WriteLine("The third bit of the number {0} is... {1}", number, number & 8 >> 3);
    }
}

